package com.lagou.blog.service.impl;

import com.lagou.blog.pojo.Article;
import com.lagou.blog.repository.ArticleRepository;
import com.lagou.blog.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;



@Service
public class ArticleServiceImpl implements ArticleService {

	@Autowired
	private ArticleRepository articleRepository;

	@Override
	public Page<Article> selectArticleList(Pageable pageable) {
		return articleRepository.findAll(pageable);
	}

}
